/************************************************************************

								Heroes IV
					  Copyright 2000, The 3DO Company

	------------------------------------------------------------------
  						       campfire.h

	$Header: /game/campfire.h $

	$NoKeywords: $

 ************************************************************************/

#ifndef CAMPFIRE_H_INCLUDED
#define CAMPFIRE_H_INCLUDED

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include "material_amount.h"
#include "stationary_adventure_object.h"

// -------------------------------------------------------
// campfire.  Gives gold and materials.
// -------------------------------------------------------
class t_campfire : public t_stationary_adventure_object
{
public:
	t_campfire( t_stationary_adventure_object const& source );
	virtual void	activate_trigger( t_army* army, t_adv_map_point const& point, 
		                                   t_direction direction, t_adventure_frame* frame );
	virtual float	ai_value( t_adventure_ai const& ai, t_creature_array const& army, int move_cost ) const;	
	virtual bool	read( std::streambuf&						stream, 
							t_qualified_adv_object_type const&	type,
							int									version );
	virtual bool	write( std::streambuf& stream ) const;

protected:
	int				  m_gold;
	t_material_amount m_material;
};

#endif // CAMPFIRE_H_INCLUDED